package com.topisv.tms.rest.qimen.qmentity.request.returninstoragecreate;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;

import org.hibernate.validator.constraints.NotBlank;

@XmlAccessorType(XmlAccessType.FIELD)
public class ReturnOrderItem {
	@XmlElement(name="orderLineNo")
	private String orderLineNo;			//单据行号
	@XmlElement(name="sourceOrderCode")
	private String sourceOrderCode;		//交易平台订单, string (50)
	@XmlElement(name="subSourceOrderCode")
	private String subSourceOrderCode;	//交易平台子订单编码
	
	@NotBlank
	@XmlElement(name="ownerCode")
	private String ownerCode;			//货主编码
	
	@NotBlank
	@XmlElement(name="itemCode")
	private String itemCode;		//商品编码, string (50)
	
	@NotBlank
	@XmlElement(name="itemId")
	private String  itemId;			//仓储系统商品编码
	@XmlElement(name="inventoryType")
	private String inventoryType;	//库存类型, string (50) , ZP=正品, CC=残次,JS=机损, XS= 箱损, 默认为ZP

	@Min(value=1)
	@XmlElement(name="planQty")
	private Integer quantity;		//商品数量
	
	@XmlElement(name="batchCode")
    private String batchCode;
	@XmlElement(name="productDate")
    private String productDate;
	@XmlElement(name="expireDate")
    private String expireDate;
	
	
	public String getSourceOrderCode() {
		return sourceOrderCode;
	}
	public void setSourceOrderCode(String sourceOrderCode) {
		this.sourceOrderCode = sourceOrderCode;
	}
	public String getSubSourceOrderCode() {
		return subSourceOrderCode;
	}
	public void setSubSourceOrderCode(String subSourceOrderCode) {
		this.subSourceOrderCode = subSourceOrderCode;
	}
	public String getItemCode() {
		return itemCode;
	}
	public void setItemCode(String itemCode) {
		this.itemCode = itemCode;
	}
	public String getItemId() {
		return itemId;
	}
	public void setItemId(String itemId) {
		this.itemId = itemId;
	}
	public String getInventoryType() {
		return inventoryType;
	}
	public void setInventoryType(String inventoryType) {
		this.inventoryType = inventoryType;
	}
	public Integer getQuantity() {
		return quantity;
	}
	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}
	public String getOrderLineNo() {
		return orderLineNo;
	}
	public void setOrderLineNo(String orderLineNo) {
		this.orderLineNo = orderLineNo;
	}
	public String getOwnerCode() {
		return ownerCode;
	}
	public void setOwnerCode(String ownerCode) {
		this.ownerCode = ownerCode;
	}
    
    public String getBatchCode() {
        return batchCode;
    }
    
    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }
    
    public String getProductDate() {
        return productDate;
    }
    
    public void setProductDate(String productDate) {
        this.productDate = productDate;
    }
    
    public String getExpireDate() {
        return expireDate;
    }
    
    public void setExpireDate(String expireDate) {
        this.expireDate = expireDate;
    }
	
}
